<%-- 
    Document   : nuevaBoletaSenasa
    Created on : 31/03/2010, 10:25:05
    Author     : Administrador
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="/WEB-INF/seguridad.jspf"/>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script type="text/javascript" src="stmenu.js"></script>
        <script type="text/javascript">
            <!--

            nume=0;
            function crearo(obj) {
                nume++;
                fi = document.getElementById('tablabody'); // 1
                tr = document.createElement('tr'); // 2
                tr.id = 'tr'+nume; // 3
                fi.appendChild(tr); // 4

                td = document.createElement('td');
                td.textContent = 'sanitario: '+nume;
                tr.appendChild(td);
                td1 = document.createElement('td');
                tr.appendChild(td1);

                ele = document.createElement('input'); // 5
                ele.type = 'text'; // 6
                ele.id='sanit'+nume;
                ele.name='sanitario';
                td1.appendChild(ele);




            }
            function borrar(obj) {
                if(nume!=0){
                    fi = document.getElementById('tablabody'); // 1
                    fi.removeChild(document.getElementById('tr'+nume)); // 10
                    nume--
                }
            }
            -->
        </script>
        
    </head>
    <body bgcolor="#FFFFFF">
        
        <!-- HTML form tag. -->
        <!-- Action attribute specify where the form data is to be sent to  -->
        <!-- Method attribute specify what method the form data is to be sent. POST or GET. Default is GET. -->
        <center>
            <%@include file="menu.jsp" %>
            <h1>Nueva Boleta Senasa</h1>
            <form action="nuevaBoletaSenasa.html" method="post">

                <table border="0">

                    <tbody id="tablabody">
                        <tr>
                            <td>Numero de Boleta:</td>
                            <td><input type="text" name="numBoleta" value="" /></td>
                        </tr>
                        <tr>
                            <td>Concepto:</td>
                            <td><input type="text" name="concepto" value="" /></td>
                        </tr>
                        <tr>
                            <td>Valor:</td>
                            <td><input type="text" name="valor" value="" /></td>
                        </tr>
                        <tr>
                            <td>Fecha de Entrega:</td>
                            <td><input type="text" name="fechaEntrega" value="" /></td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2"> Correspondiente a Sanitarios</td>
                        </tr>
                        <tr>
                            <td align="center"><input type="button" value="Agregar Sanitario" onclick="crearo(this)" /></td>
                            <td  align="center"><input type="button" value="Quitar" onclick="borrar(this)" /></td>
                        </tr>

                    </tbody>


                </table>
                <input type="submit" value="Cargar" />

            </form>
        </center>
    </body>
</html>
